package com.banggood.upms.bean.po;

import com.banggood.upms.bean.vo.validation.AddGroup;
import com.banggood.upms.bean.vo.validation.UpdateGroup;
import lombok.*;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * @author XuChuangFeng XuChuangFeng
 */
@Data
public class UserAttr extends BaseColumn{

    @NotNull(message = "{validation.NotNull.id}", groups = {UpdateGroup.class})
    @Null(message = "{validation.Null.id}", groups = {AddGroup.class})
    private String attrId;

    @NotNull(message = "{validation.UserAttr.userId.NotNull}", groups = {AddGroup.class})
    private String userId;

    @NotNull(message = "{validation.UserAttr.attrKey.NotNull}", groups = {AddGroup.class})
    private String attrKey;

    @NotNull(message = "{validation.UserAttr.attrValue.NotNull}", groups = {AddGroup.class})
    private String attrValue;

    private String remark;
}
